home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
lrange.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
2KB
|
67 lines
llllrrrraaaannnnggggeeee((((nnnn)))) TTTTccccllll (((( )))) llllrrrraaaannnnggggeeee((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
lrange - Return one or more adjacent elements from a list
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
llllrrrraaaannnnggggeeee _l_i_s_t _f_i_r_s_t _l_a_s_t
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_L_i_s_t must be a valid Tcl list. This command will return a
new list consisting of elements _f_i_r_s_t through _l_a_s_t,
inclusive. _L_a_s_t may be eeeennnndddd (or any abbreviation of it) to
refer to the last element of the list. If _f_i_r_s_t is less
than zero, it is treated as if it were zero. If _l_a_s_t is
greater than or equal to the number of elements in the list,
then it is treated as if it were eeeennnndddd. If _f_i_r_s_t is greater
than _l_a_s_t then an empty string is returned. Note: ``llllrrrraaaannnnggggeeee
_l_i_s_t _f_i_r_s_t _f_i_r_s_t'' does not always produce the same result
as ``lllliiiinnnnddddeeeexxxx _l_i_s_t _f_i_r_s_t'' (although it often does for simple
fields that aren't enclosed in braces); it does, however,
produce exactly the same results as ``lllliiiisssstttt [[[[lllliiiinnnnddddeeeexxxx _l_i_s_t
_f_i_r_s_t]]]]''
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
element, list, range, sublist
Page 1 (printed 7/17/95)